import request from "@/utils/request"

export default
{
  /**
   * 多条件查询活动列表
   * @param current
   * @param limit
   * @param recommendQuery
   */
  pageRecommendCondition(current,limit,recommendQuery)
  {
    return request
    ({
      method:"POST",

      url:`/hy/recommend/pageRecommendCondition/${current}/${limit}`,

      data: recommendQuery
    })
  },

  /**
   * 通过活动id逻辑删除推荐信息
   * @param id
   */
  delRecommendById(recommendId)
  {
    return request
    ({
      method:"GET",

      url:`/hy/recommend/removeByRecommendId/${recommendId}`
    })
  },
  /**
   * 通过活动id逻辑审核推荐信息
   * @param id
   */
  checkRecommendById(recommendId,recommendHasChecked)
  {
    return request
    ({
      method:"POST",

      url:`/hy/recommend/checkRecommend/${recommendId}/${recommendHasChecked}`
    })
  },


  /**
   * 修改推荐信息
   * @param act
   */
  updateRecommend(recommend)
  {
    return request
    ({
      method:"POST",
      url:'/hy/recommend/updateRecommend',
      data:recommend
    })
  },
}
